
<meta charset="utf-8">
<script>
    var core = prompt("请输入您的成绩：");
    if(core>90){
        alert("优秀");
    }else if(core>80){
        alert("良好");
    }else if(core>60){
        alert("及格");
    }else{
        alert("差");
    }
</script>